package com.hktf.moedokilock.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * @Package: com.yx.c80.main.bean
 * @ClassName: MainItem
 * @Description: java类作用描述
 * @Author: cdz
 * @CreateDate: 2022/12/9 16:34
 * @UpdateUser: cdz
 * @UpdateDate: 2022/12/9 16:34
 * @UpdateRemark: 更新说明
 * @Version: 1.0
 */
public class MainItem implements MultiItemEntity {
    private String title;
    private int imgSelectedResId;
    private int imgNormalResId;
    private boolean isChecked;//是否选中
    private int type;//0 首页一直是高亮状态   1其它  2车辆诊断

    private String value1;
    private String value2;

    @Override
    public String toString() {
        return "MainItem{" +
                "title='" + title + '\'' +
                ", imgSelectedResId=" + imgSelectedResId +
                ", imgNormalResId=" + imgNormalResId +
                ", isChecked=" + isChecked +
                ", type=" + type +
                ", value1='" + value1 + '\'' +
                ", value2='" + value2 + '\'' +
                '}';
    }

    public MainItem(String title, boolean isChecked, int type, String value1, String value2) {
        this.title = title;
        this.isChecked = isChecked;
        this.type = type;
        this.value1 = value1;
        this.value2 = value2;
    }

    public MainItem() {
    }

    public String getValue1() {
        return value1;
    }

    public void setValue1(String value1) {
        this.value1 = value1;
    }

    public String getValue2() {
        return value2;
    }

    public void setValue2(String value2) {
        this.value2 = value2;
    }

    public int getResId(){
        return isChecked?imgSelectedResId:imgNormalResId;
    }

    public int getImgNormalResId() {
        return imgNormalResId;
    }

    public void setImgNormalResId(int imgNormalResId) {
        this.imgNormalResId = imgNormalResId;
    }

    public boolean isChecked() {
        return isChecked;
    }

    public void setChecked(boolean checked) {
        isChecked = checked;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public int getImgSelectedResId() {
        return imgSelectedResId;
    }

    public void setImgSelectedResId(int imgSelectedResId) {
        this.imgSelectedResId = imgSelectedResId;
    }

    @Override
    public int getItemType() {
        return type;
    }
}
